package com.zxy.ziems.server.device.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.zxy.btp.mybatis.base.BaseEntity;

/**
 * 数据单位
 * 例如：KWH、安培、KV、W、A
 * @author 10348359
 * @create 2024-02-28 0:22
 */
@TableName("t_data_unit")
public class DataUnitEntity extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 编号
     */
    private String code;
    /**
     * 描述
     */
    private String name;

    /**
     * 倍率 默认为1
     */
    private Integer multiple;

    /**
     * 除数 默认为1
     */
    private Integer divisor;

    /**
     * 最后分组名称
     */
    private String groupName;

    /**
     * 分组一级名称
     */
    @TableField(value = "group_level_1_name", updateStrategy = FieldStrategy.ALWAYS)
    private String groupLevel1Name;

    /**
     * 分组二级名称
     */
    @TableField(value = "group_level_2_name", updateStrategy = FieldStrategy.ALWAYS)
    private String groupLevel2Name;

    /**
     * 分组三级名称
     */
    @TableField(value = "group_level_3_name", updateStrategy = FieldStrategy.ALWAYS)
    private String groupLevel3Name;

    /**
     * 分组四级名称
     */
    @TableField(value = "group_level_4_name", updateStrategy = FieldStrategy.ALWAYS)
    private String groupLevel4Name;

    /**
     * 分组五级名称
     */
    @TableField(value = "group_level_5_name", updateStrategy = FieldStrategy.ALWAYS)
    private String groupLevel5Name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMultiple() {
        return multiple;
    }

    public void setMultiple(Integer multiple) {
        this.multiple = multiple;
    }

    public Integer getDivisor() {
        return divisor;
    }

    public void setDivisor(Integer divisor) {
        this.divisor = divisor;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupLevel1Name() {
        return groupLevel1Name;
    }

    public void setGroupLevel1Name(String groupLevel1Name) {
        this.groupLevel1Name = groupLevel1Name;
    }

    public String getGroupLevel2Name() {
        return groupLevel2Name;
    }

    public void setGroupLevel2Name(String groupLevel2Name) {
        this.groupLevel2Name = groupLevel2Name;
    }

    public String getGroupLevel3Name() {
        return groupLevel3Name;
    }

    public void setGroupLevel3Name(String groupLevel3Name) {
        this.groupLevel3Name = groupLevel3Name;
    }

    public String getGroupLevel4Name() {
        return groupLevel4Name;
    }

    public void setGroupLevel4Name(String groupLevel4Name) {
        this.groupLevel4Name = groupLevel4Name;
    }

    public String getGroupLevel5Name() {
        return groupLevel5Name;
    }

    public void setGroupLevel5Name(String groupLevel5Name) {
        this.groupLevel5Name = groupLevel5Name;
    }
}
